home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / groff / 1.18.1 / tmac / mdoc / doc-ditroff < prev    next >
Encoding:
Text File  |  2009-03-18  |  5.3 KB  |  220 lines

  1. .\" Copyright (c) 1991, 1993
  2. .\"    The Regents of the University of California.  All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\"    notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\"    notice, this list of conditions and the following disclaimer in the
  11. .\"    documentation and/or other materials provided with the distribution.
  12. .\" 3. All advertising materials mentioning features or use of this software
  13. .\"    must display the following acknowledgement:
  14. .\"      This product includes software developed by the University of
  15. .\"      California, Berkeley and its contributors.
  16. .\" 4. Neither the name of the University nor the names of its contributors
  17. .\"    may be used to endorse or promote products derived from this software
  18. .\"    without specific prior written permission.
  19. .\"
  20. .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  21. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  24. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  26. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30. .\" SUCH DAMAGE.
  31. .\"
  32. .\"     @(#)doc-ditroff    8.1 (Berkeley) 06/08/93
  33. .\"
  34. .eo
  35. .if !r C .nr C 0
  36. .if !r D .nr D 0
  37. .if !r cR .nr cR 0
  38. .if !r S .nr S 10
  39. .ec
  40. .ie        (\n[S] == 11) \{\
  41. .ps 10.95z
  42. .vs 13.6p
  43. .\}
  44. .el \{ .ie (\n[S] == 12) \{\
  45. .ps 12z
  46. .vs 14.5p
  47. .\}
  48. .el \{\
  49. .ps 10z
  50. .vs 12p
  51. .\}\}
  52. .ds caption-font \f[R]\s[\n[.ps]u]
  53. .ds caption-font2 \f[R]\s[\n[.ps]u]
  54. .ds Ad-font \f[I]\s[\n[.ps]u]
  55. .ds Ar-font \f[CO]\s[\n[.ps]u]
  56. .ds Cm-font \f[CB]\s[\n[.ps]u]
  57. .ds Em-font \f[I]\s[\n[.ps]u]
  58. .ds Er-font \f[C]\s[\n[.ps]u]
  59. .ds Ev-font \f[C]\s[\n[.ps]u]
  60. .ds Fa-font \f[CO]\s[\n[.ps]u]
  61. .ds Fd-font \f[CB]\s[\n[.ps]u]
  62. .ds Fl-font \f[CB]\s[\n[.ps]u]
  63. .ds Fn-font \f[CB]\s[\n[.ps]u]
  64. .ds Ft-font \f[CO]\s[\n[.ps]u]
  65. .ds Ic-font \f[CB]\s[\n[.ps]u]
  66. .ds Li-font \f[C]
  67. .ds Me-font \f[B]\s[\n[.ps]u]
  68. .ds Nm-font \f[CB]\s[\n[.ps]u]
  69. .ds No-font \f[R]\s[\n[.ps]u]
  70. .ds Pa-font \f[C]\s[\n[.ps]u]
  71. .ds Sh-font \f[B]\s[\n[.ps]u]
  72. .ds Sy-font \f[B]\s[\n[.ps]u]
  73. .ds Sx-font \f[B]\s[\n[.ps]u]
  74. .ds Tn-font-shape \f[R]
  75. \# XXX: adapt to discrete LaTeX font sizes
  76. .ds Tn-font-size \s[(\n[.ps]u - 1z)]
  77. .ds Va-font \f[I]\s[\n[.ps]u]
  78. .ds Xr-font \f[C]\s[\n[.ps]u]
  79. .ds left-parenthesis \f[R]\|(\|\f[]\s[\n[.ps]u]
  80. .ds right-parenthesis \f[R]\|)\|\f[]\s[\n[.ps]u]
  81. .ds lp \f[R](\f[]\s[\n[.ps]u]
  82. .ds rp \f[R])\f[]\s[\n[.ps]u]
  83. .ds left-bracket \f[R]\^[\^\f[]\s[\n[.ps]u]
  84. .ds right-bracket \f[R]\^]\f[]\s[\n[.ps]u]
  85. .tr *\[**]
  86. .nr subheader-indent (\w\f[C],u * 5u)
  87. .nr paragraph-space .5v
  88. .nr digit-width \w'\0'u
  89. .nr fixed-width \w\f[C]0
  90. .eo
  91. .nr header-space 0
  92. .nr footer-space 0
  93. .nr display-vertical 0
  94. .de setup-page-layout
  95. .nr header-space .5i
  96. .nr footer-space .5i
  97. .ie r LL \
  98. .ll \n[LL]u
  99. .el \
  100. .ll 6.5i
  101. .ie r LT \
  102. .lt \n[LT]u
  103. .el \
  104. .lt 6.5i
  105. .po 1i
  106. .nr display-vertical .5v
  107. ..
  108. .ds left-singlequote \[oq]
  109. .ds right-singlequote \[cq]
  110. .ds <= \[<=]
  111. .ds >= \[>=]
  112. .ds Lq \[lq]
  113. .ds Rq \[rq]
  114. .ds ua \[ua]
  115. .ds aa \[aa]
  116. .ds ga \[ga]
  117. .ds q \[dq]
  118. .ds Pi \[*p]
  119. .ds Ne \[!=]
  120. .ds Le \[<=]
  121. .ds Ge \[>=]
  122. .ds Lt <
  123. .ds Gt >
  124. .ds Pm \[+-]
  125. .ds If \[if]
  126. .ds Na \f[I]NaN\f[]
  127. .ds Ba \f[R]|\f[]
  128. .ds Am &
  129. .nr gX 0
  130. .ds header-string
  131. .de setup-header
  132. .ds header-string "\*[document-title]
  133. .if !"\*[section]"Null" \
  134. .as header-string \|(\*[section])
  135. .wh 0 header
  136. .wh -1.25i footer
  137. .nr nL \n[nl]
  138. .if \n[gX] \
  139. .ds command-name
  140. .br
  141. .if \n[nL] \
  142. .if !\n[C] \
  143. .nr % 1
  144. .nr gX 0
  145. .e@ end-macro
  146. ..
  147. .de get-width
  148. .nr width \w\f[C]\$1
  149. .ie (\n[width] >= \n[fixed-width]) \{\
  150. .ie (\n[width] % \n[fixed-width]) \
  151. .nr width ((\n[width] / \n[fixed-width]) + 1)
  152. .el \
  153. .nr width (\n[width] / \n[fixed-width])
  154. .\}
  155. .el \{\
  156. .ie \n[width] \
  157. .nr width 1
  158. .el \
  159. .nr width 0
  160. .\}
  161. ..
  162. .de get-arg-width
  163. .nr width \w\f[C]\*[arg\$1]
  164. .ie (\n[width] >= \n[fixed-width]) \{\
  165. .ie (\n[width] % \n[fixed-width]) \
  166. .nr width ((\n[width] / \n[fixed-width]) + 1)
  167. .el \
  168. .nr width (\n[width] / \n[fixed-width])
  169. .\}
  170. .el \{\
  171. .ie \n[width] \
  172. .nr width 1
  173. .el \
  174. .nr width 0
  175. .\}
  176. ..
  177. .de Ql
  178. .if !\n[arg-limit] \{\
  179. .ie \n[.$] \{\
  180. .ds macro-name Ql
  181. .parse-args \$@
  182. .\}
  183. .el \
  184. .tm Usage: .Ql argument ... (#\n[.c])
  185. .\}
  186. .nr reg-Ql (\n[arg-ptr] + 1)
  187. .get-arg-width \n[reg-Ql]
  188. .nr reg-Ql +1
  189. .if (\n[arg-limit] >= \n[reg-Ql]) \
  190. .if (\n[type\n[reg-Ql]] == 2) \
  191. .nr width 3
  192. .ie (\n[width] > 2) \
  193. .Li
  194. .el \{\
  195. .ie \n[arg-ptr] \{\
  196. .ds arg\n[arg-ptr] Li
  197. .nr arg-ptr -1
  198. .\}
  199. .el \{\
  200. .nr reg-Ql \n[arg-limit]
  201. .nr reg-Ql1 (\n[arg-limit] + 1)
  202. .while \n[reg-Ql] \{\
  203. .rn arg\n[reg-Ql] arg\n[reg-Ql1]
  204. .rnn type\n[reg-Ql] type\n[reg-Ql1]
  205. .rn space\n[reg-Ql] space\n[reg-Ql1]
  206. .nr reg-Ql -1
  207. .nr reg-Ql1 -1
  208. .\}
  209. .ds arg1 Li
  210. .nr type1 1
  211. .ds space1
  212. .nr arg-limit +1
  213. .\}
  214. .ds quote-left "\*[left-singlequote]
  215. .ds quote-right "\*[right-singlequote]
  216. .enclose-string
  217. .\}
  218. ..
  219. .ec
  220.